<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>聊天室表情</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .emoji {
            margin:50px;
        }
        /* 去除li黑点 */
        ul {
            overflow: hidden;
        }
        li {
            float: left;
            width: 48px;
            height: 48px;
            cursor: pointer;
            list-style-type: none;
        }
        .emoji img {
            cursor: pointer;
            width: 48px;
            height: 48px;
        }
    </style>
</head>
<body>
    <!-- 表情选择 -->
    <div class="emoji">
        <!-- ul>li>img -->
        <ul>
            <li><img src="./images/04.gif" alt=""></li>
            <li><img src="./images/05.gif" alt=""></li>
            <li><img src="./images/10.gif" alt=""></li>
        </ul>
        <h3>请发言</h3>
        <p class="word">
            <img src="./images/04.gif" alt="">
        </p>
    </div>
</body>
<script src="./jquery.min.js"></script>
<script>
    $(document).ready(function() {
        $("ul img").click(function(){
            // 复制，克隆元素
            $("p").append($(this).clone());
        })
    })
</script>
</html>